// 一个模块就是一个对象(小store)
import { cateGoryList } from "@/api/index";
export default {
  state: {
    list: [],
  },
  mutations: {
    GETLIST(state, res) {
      state.list = res;
    },
  },
  actions: {
    async getList({ commit }) {
      const res = await cateGoryList();
      commit("GETLIST", res);
    },
  },
  getters: {},
};
